#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL_image.h>
#include <string.h>
#include <SDL/SDL.h>
#include "smpeg.h"
#include "perso.h"


int main(int argc, char *argv[])
{
    SDL_Surface *ecran = NULL;
    int continuer = 1;
    SDL_Event event;
    int sortir=0;
    


    remove("menu/nom.txt");

    if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) == -1)
    {
        fprintf(stderr, "Erreur d'initialisation de la SDL : %s\n", SDL_GetError());
        exit(EXIT_FAILURE);
    }

    //intro(ecran);
    SDL_WM_SetCaption("JEU", NULL);
    sortir =menu (ecran, &sortir);
    if (sortir ==1)
    {
        return EXIT_SUCCESS;
    }
    printf ("\n%d\n",sortir); 
    LeJeu();

    

    


    

    return EXIT_SUCCESS;
}
